package net.ptcs.litang.controller;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * 订票的servlet
 *
 * @author 赵浩森
 * @version 1.0
 * @since 2024/6/16 23:24
 */
@WebServlet(description = "订票的servlet", urlPatterns = {"/TicketServlet"})
public class TicketServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;

    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        //由于不需要带礼物（传递数据）给页面，所以直接跳转过去
        request.getRequestDispatcher("/user/ticket.jsp").forward(request, response);
    }
}